package com.runtime;

import com.base.Constant;
import com.base.Sprite;
import com.util.ImageUtil;

import java.awt.Graphics;
import java.awt.Image;

public class Land extends Sprite {


    public Image image;

    public Land() {
        init();
    }

    private void init(){
        image = ImageUtil.get("land");
        setX(0);
        setY(Constant.WINDOW_HEIGHT - image.getHeight(null));
        setHeight(image.getHeight(null));
    }
    @Override
    public void draw(Graphics g) {
        g.drawImage(image,getX(),getY(),null);

    }
    public void move(){

    }
}
